約 5,352,273 件
https://w.atwiki.jp/simple_wii/pages/13.html
Playstation2やDSで低価格で大抵微妙、たまに良質なゲームタイトルをリリースしてきたD3パブリシャーだが、Wiiでは今までとは違う試みを行っている。 ゲーム自体はシンプルな内容ながら、全てのタイトルに通信対戦機能を実装し、Wiiリモコンを用いた直感的な操作で世界中のプレーヤーと簡単に遊べるようになった。 また、「LAPIS」を実装したことで、自分だけのアピアンを作成しゲーム内で使用することができる。 LAPIS LiveApianPlayingImformationSystem 複数のゲームで自分の好みのデザインをしたキャラクターを使用できるというのはかなり画期的なシステムだが、いかんせんゲームの内容が微妙でWiiがまだ普及段階ということもあり、あまり注目されていない。オンに人いないし。 このページは、そんな状態のSIMPLE Wiiシリーズを少しでも一般に広めるべく情報を蓄積することを目的として作られている。
https://w.atwiki.jp/yasrun/pages/148.html
和暦で本日の日付を表示 import java.util.Locale; import java.util.Date; import java.text.SimpleDateFormat; public class Test { public static void main(String[] args) { Locale.setDefault(new Locale("ja", "JP", "JP")); SimpleDateFormat sdf4JFormat = new SimpleDateFormat("GGGGyy年MM月dd日"); Date now = new Date(); System.out.println(sdf4JFormat.format(now)); } } 実行すると、例えば 平成24年06月13日 と表示されます。 参考 ■Java SE 6 じゃじゃ馬ならし 和暦 http //www.javainthebox.net/laboratory/JavaSE6/imperialcalendar/imperialcalendar.html JapaneseImperialCalendar。 ジャパニーズインペリアルカレンダー。 かっこいいクラス名ですね。 とはいえ実際にコーディングしてみるとジャパニーズのジャの字も出てこないですね。 あっ、ロケール設定のとこにあった。 CalendarクラスのインスタンスがSimpleDateFormat(DateFormat)クラスに内包されているのは ご存知の通りですが、そのインスタンスが JapaneseImperialCalendarのインスタンスになる、という具合の 利用のされ方のようで。 もちろんロケールが日本語に設定されていないとそうなりませんが。
https://w.atwiki.jp/my-sql/pages/107.html
HOME 関数 日付と時刻関数 DATE_FORMAT DATE_FORMAT DATE_FORMAT(date,format) format 文字列に合わせて、date 値を形式設定する。format 文字列では、次の指定子を使用できる。 指定子 説明 %M 月の名前(January..December)。 %W 曜日名(Sunday..Saturday)。 %D 英語のサフィックス付きの日付(0th、1st、2nd、3rd など)。 %Y 4 桁の数値で表した年。 %y 2 桁の数値で表した年。 %X 日曜日を週の最初の日とした場合の週に使用する、4 桁の数値で表した年。%V と組み合わせて使用。 %x 月曜日を週の最初の日とした場合の週に使用する、4 桁の数値で表した年。%v と組み合わせて使用。 %a 略式の曜日名(Sun..Sat)。 %d 数値で表した日付(00..31)。 %e 数値で表した日付(0..31)。 %m 数値で表した月(00..12)。 %c 数値で表した月(0..12)。 %b 略式の月名(Jan..Dec)。 %j 年間を通した日にち(001..366)。 %H 時(00..23)。 %k 時(0..23)。 %h 時(01..12)。 %I 時(01..12)。 %l 時(1..12)。 %i 数値で表した分(00..59)。 %r 12 時間形式の時刻(hh mm ss に続けて AM または PM)。 %T 24 時間形式の時刻(hh mm ss)。 %S 秒(00..59)。 %s 秒(00..59)。 %f マイクロ秒(000000..999999)。 %p AM または PM %w 曜日(0=Sunday..6=Saturday)。 %U 日曜日を週の最初の日とした場合の週(00..53)。 %u 月曜日を週の最初の日とした場合の週(00..53)。 %V 日曜日を週の最初の日とした場合の週(01..53)。%X と組み合わせて使用。 %v 月曜日を週の最初の日とした場合の週(01..53)。%x と組み合わせて使用。 %% リテラルの ‘%’。 その他の文字はいずれも、解釈されずにそのまま結果にコピーされる。 %f 形式指定子は MySQL 4.1.1 以降で使用できる。 MySQL バージョン 3.23 以降では、形式指定子文字の前に ‘%’ 文字を挿入する必要がある。それより前のバージョンの MySQL では、‘%’ の使用は任意。 月と日の指定子の範囲がゼロから始まっている理由は、MySQL 3.23 以降では、 2004-00-00 のような不完全な日付の格納が許容されるため。 mysql SELECT DATE_FORMAT( 1997-10-04 22 23 00 , %W %M %Y ); - Saturday October 1997 mysql SELECT DATE_FORMAT( 1997-10-04 22 23 00 , %H %i %s ); - 22 23 00 mysql SELECT DATE_FORMAT( 1997-10-04 22 23 00 , %D %y %a %d %m %b %j ); - 4th 97 Sat 04 10 Oct 277 mysql SELECT DATE_FORMAT( 1997-10-04 22 23 00 , %H %k %I %r %T %S %w ); - 22 22 10 10 23 00 PM 22 23 00 00 6 mysql SELECT DATE_FORMAT( 1999-01-01 , %X %V ); - 1998 52
https://w.atwiki.jp/aliceincradle/pages/102.html
ver0.20s (220528-2) ver 0.20r (220528) ver 0.20q (220525) ver 0.20o (220523) ver 0.20n (220521) ver 0.20m (220520) ver 0.20k (220519) ver 0.20j (220516) ver 0.20h (220515) ver 0.20g (220514) ver 0.20e (220509) ver 0.20d (220508 19 00) ver 0.20c (220508) ver 0.20b (220506) ver0.20s (220528-2) Updated Korean and Traditional Chinese languages. The title screen of ver0.20r was showing ver0.20q, so it was corrected. ver 0.20r (220528) Fixed an issue where the game would freeze when the fox and sponge appeared at the same time. Fixed an issue where the staging would overlap when bashing the fox's fireball. Fixed an issue where the game could not be launched on macOS running on Apple silicon. Fixed an issue where pressing the green switch could jam the map where the comet dive could not be obtained Noel is an idiot. Fixed Kenzan's drill attack being prevented by shield bash. Fixed an issue where snakes running out of mp would stop working. ver 0.20q (220525) Fixed Simplified Chinese B. Corrected processing when initializing INBE (Noel-chan Sticky Engine). Fixed a problem in which the blood description reduction was not reflected in the repainting content when saving and reloading data with a dirty Noel-chan. ver 0.20p (220524) ver0.09Fixed a problem in which recipes, enhancer slots, etc. were not listed in the store inventory in the data loaded from the Updated Traditional Chinese and Korean. Fixed a problem in which White Arrow and Energy Ball magic did not slow down during the slow motion effect. Fixed an issue where the coordinates of the ground on which rain falls were out of alignment when it rains. Fixed a problem where a large number of items would be generated from the tree of materials. Fixed so that the inventory count of items in the warehouse of a house can be known even when using the nightingale's store. Magic movement speed is now increased when the weather is windy. Instead, the correction for the maximum number of enemies that can appear when the wind is blowing has been changed from -3 to -2. Fixed a problem where jumping on a slope would gradually send you flying sideways. Fixed a problem in the puzzle to the right of the needle rat, where acid could flood the area where the checkpoint was located. Fixed an issue where new enemy restraints would sometimes fail when Noel was being restrained by multiple enemies. Fixed an issue where skipping a masturbation scene would not yield Noel juice or climax counts. Fixed incorrect materials being sold by Ms. Nightingale. Reviewed and sped up the processing of some staging, such as the UI gauge during egg holding. Fixed an issue where HP and MP could be recovered by replacing skills. Fixed an issue where the display position of QTE sometimes overlapped. ver 0.20o (220523) ver0.09Simplified Chinese version just arrived from our Simplified Chinese translation team! Thanks to @rolling_badger ,@szsrkirby ,@kokonoekyu ,@Chiyuki34885962, , Phenix02, Updated Traditional Chinese. Added option to accept evade input while shield is deployed. The "small attack" and "weak attack" are now unified as "small attack". Fixed a typo in the scenario. The volume of the sound for the sponge tornado attack has been lowered. Fixed an issue where stragglers were sometimes pushed to the right side of the map during a straggler battle. Fixed an issue where a successful wand swing parry or shield bash during a falling attack on a contaminated body in Kenzan would cause a series of reflection staging. Fixed an issue where markers could not be placed on the map. When a contaminant is destroyed, it now sprays golden mana even if its MP is low. Doubled the amount of golden mana recovered when using Haniwa no Amulet. Speeded up the speed at which it takes to place bombs. Fixed so that the player does not lose magic power for chanting while using a charger slot, even if he/she takes damage. Fixed an issue where the Charger Slot would be consumed during normal magic chanting when the Charger Slot is charged, hold, and then resume chanting. Fixed a problem where Ukemi was difficult to perform. Fixed an issue where materials could be buried in a wall when a large amount of items were obtained from a material tree close to the wall. Fixed an issue where loading with confusion lv.2 on would freeze. Fixed being able to shoot bursts while sleeping. Fixed an issue where the comatose state would not be released if the user was restrained while in a comatose state. Improved the ease of getting out of restraints during shield break. Fixed a decrease in the efficiency of collecting magic power when the White Arrow is used repeatedly by the demon. Fixed the selling price of Life Bottle. ver 0.20n (220521) Simplified Chinese B Fansub included. Thanks to 哥哥我欧尼酱 Korean update. Fixed a problem that prevented loading when the data of ver0.09 was full of items. Fixed a problem in which the data carried over from ver0.09 listed benches and treasure chests that did not exist on the current map. Added scaffolding to the "Emptiness of the Flying Waterfall" to make it easier. The opacity of the enemy aura has been increased to make it easier to see at night. ver 0.20m (220520) Korean, Traditional Chinese text untranslated corrected. It is now possible to select day/evening/night to depart until the third day. Fast travel is possible at night as long as it is after departure and before the battle starts anywhere. In order to depart on the second day, you must survive until the third day before returning to your base. Fixed a problem in which the update of the inventory in the Nightingale Levy store was not executed until after the battle, unless you saved once after the battle. The input acceptance time to start chanting has been increased significantly. (When pressing the magic key during evasion, you can now chant at the end of the evasion) Fixed an issue where loading data that did not have a charger slot while playing data that did have a charger slot would leave the slot in the UI. Fixed an issue where textures of characters could be destroyed when resuming the game after returning to the title in the middle of the game. ver 0.20k (220519) Partial correction of untranslated portions of the Traditional Chinese version. Fixed a system whereby it is now possible to acquire more than 9 reels for treasure chests and instead discard them when opening a treasure chest until there are 8 reels. Fixed an issue where it was easy to gain danger by going back and forth between two hunting grounds. Fixed an issue where the left side of the king of mycelium was shown as passable on the map. Fixed an issue where it was possible to disengage from a moving floor if you were caught between two moving floors. For Translaters few sentences are added to *_tx2.txt . ver 0.20j (220516) Traditional Chinese version implemented. Thanks a lot @zelda05151 Fixed a problem with Noel-chan sprinting when running by pressing the run button on the right wall. More solid fixes for the enemy wall burial bug. Forced combat was occurring outside of the night, so we limited it to after the 4th. Fixed an issue where Noel would fall when talking to Ms. Nightingale on the bench in front of the house, depending on her position. Fixed a problem where the same weather sometimes occurred twice in a row. Fixed a problem where the weather cannot be progressed by sprinkling Noel Juice. Fixed a problem where the total number of enemies would not increase after the 5th day of the adventure, but instead enemies would respawn at a blazing speed. Increased the amount of enemies at Moonless Veil from the second day cycle. ver 0.20h (220515) Now compatible with the Korean version of Fansub! Thanks to @Cilloom The maximum number of contaminants that can be generated by lightning strikes at the same time has been set. There will be 1 contaminant until the night of the 2nd, 2 until the night of the 5th, and 3 thereafter. Fixed so that after the 3rd day, the night raid decision will occur even in places that have already been defeated in the current adventure. Fixed an issue where a contaminated body would be buried in the floor when lightning strikes in a thief. Fixed an issue where saving on a map with a nightingale would not bring it back when loading. Fixed an issue where items could be used during a burst. Fixed an issue where QTE input for restraining attacks received while in a coma was not increasing. Fixed an issue where Incubated Lv 2 would not occur even if a lot of eggs were spawned. Fixed an issue where infinite treasure chests could be opened. Fixed an issue where options were "Enabled" and "Disabled" in all languages. Fixed an alert when shopping in a store if the store is full of items. When shopping in the store, if Noel already has an item of a different grade, an icon will now appear on the right side of the row. Fixed a problem in which the event message did not change when changing the font to a different language, such as Chinese, in the middle of the game. ver 0.20g (220514) Implemented running buttons. Also adjusted the default keymap. The quality of Noel juice and egg grade has been modified to increase with the growth of Noel's sexual sensitivity. Added a new area for the foxes, as there was a problem with not being able to return home at night when entering the foxes from above. This will slightly lower the map breakthrough rate, which is currently at 100%. When using the haniwa amulet, the effect is now doubled when using recovery items. Fixed a problem where eggs would poke through the UI when the haniwa was removed while a large number of eggs were being held by the haniwa. The effect of the recovery potion is now doubled when using haniwa. Fixed a problem with broccoli's special effect text. Fixed a problem with Noel-chan's urine pressure when loading data after she peed. Fixed a bug when organizing items. Fixed a problem that caused BTB Noel-chan when using magic immediately after being reflected off a wall by a cyclone. Fixed an issue where warding would not turn off when exiting a warding while falling, and warding would not turn on after entering a warding. Fixed a floor that could only be broken by sliding, not by bombs. Fixed a problem where a bomb would automatically explode when placed in a large number, causing the blast to go upward. Fixed a problem that made it difficult to pick up items that fell down a slope. Fixed a problem with messages that could not be erased in the abuse log settings. Fixed QTEs only going up, down, left, and right when sequence input is used when leveraging. Fixed that HP/MP remains unchanged when HP/MP skills are replaced. Fixed so that the levagacha is easier to pull off even when in bad status (even easier to pull off when using Haniwa). Fixed an issue where the warning line would disappear if a sorcerer took damage after releasing a spell. Fixed the state abnormality "coma" being inflicted when bursting in a row with less MP. Enemies now return to the combat area when stuck inside a wall. Fixed an issue where enemies would sometimes not return after being blown away. Fixed an issue with ground bombs reacting to chikuwa blocks. Fixed an issue where the long cane would not penetrate the mushroom's guard when attached to the cane and the swing of the cane would not be shotgun. Fixed an issue where the long cane was a placebo enhancer that extended downward. Fixed an issue where the same weather condition could occur more than once. Fixed an issue where the "~create one" in the cooking UI could not be focused when using the mouse. Fixed an issue where ovulation did not begin at the end of a battle, even if you were holding an ovulation Lv 2. Fixed an issue where the effect of the Cyclone Slash would disappear if the hit point made contact with a ceiling or other object at the beginning of the Cyclone Slash. Fixed that Ms. Nightingale's bell will be sold again when she throws it away. The window size can now be changed. Fixed an issue where water could not be acquired correctly when the item field was full. Fixed an issue where opening the item menu after saving or configuring an item would corrupt the placement of the description field. Fixed an issue where the amount of recovery displayed in the item description and the actual amount of recovery would sometimes be off by 1. Fixed an issue where loading would sometimes fail if the player immediately loaded upon defeat. Fixed an issue where the white arrow would be able to hit the demon repeatedly under certain conditions. Fixed an issue where reloading would change the contents of Mr. Levy/Nightingale's store. Fixed an issue where Mr. Nightingale would appear when the hunting ground and bench were on the same map and the player saved immediately after killing an enemy in the hunting ground, even though he should not have been there when reloading. Fixed an issue where opening and closing the menu when a large number of logs were being issued would cause stacked logs to appear on top of each other. Fixed a problem with fog being blown away when a burst is fired. Added effect when confusion is broken. Also, modified the color of the balloon to change if the user is restrained while confused. Extended the maximum danger level to 160. Fixed problem with weather mess in the same location. Fixed an issue where the title was not displayed in some parts of the night battle inside the giant tree. For Translater tx_enemy Summoner_forest_wood_nightlake = Summoner_forest_nightlake Summoner__obtainable_dangerousness tx2 追加 SerTitle_burst_tired/ SerDesc_burst_tired tx_option Add several items. ver 0.20e (220509) Fixed a bug that could occur in the region environments. Speeded up some processing. Fixed an issue where the texture of the standing picture could be corrupted in some environments. ver 0.20d (220508 19 00) Fixed a hang-up problem at startup. Fixed a problem with crawling in gamepad mode. ver 0.20c (220508) Probably fixed the problem that Noel-chan does not work correctly, such as being displayed very large on French OS. : (Maybe) fixed problems on a French OS (e.g. portrait of Noel-chan is displayed very large) : If you still have problems with ver 0.20c, please comment including your detailed language environment and OS! Fixed an issue where the treasure chest recovery rate was capped at 80.21%. Fixed an issue where the label input GUI for key configurations was not being displayed in the Windows version. Fixed an issue where "Return to Base" would not be unlocked until you returned home once when you left the house to the woods at the beginning of the second day. Fixed large rocks on the house road being automatically destroyed after rescue of Ixha. It will be destroyed automatically if you have gone through the Pollies Tutorial, or after rescuing Ixia or after seeing the SOS event with the wand. Fixed If you select "return to base," you will be returned to Noel's room. Fixed a problem where saving at the lake in the lower left corner of the house would result in a stalled save. There is currently no scenario after rescuing Ixia, but a temporary destination has been set. The puzzle hints in the upper right corner of the map from the Ixia rescue point have been made clearer. Fixed a misaligned display position of the bomb's detonation effect. Fixed so that the mushroom contaminant (king of mycelium) does not wall frame. Also, modified to scatter MP when charging, and to increase charge time when MP is insufficient. Fixed acid/current/wall pincer damage, which used to be calculated as percentage damage, so that the percentage is now lowered by the HP correction value from skills. Fixed an issue where hitting Cyclone/Comet Dive when using magic with an overcharger did not update the UI. Fixed overcharger buildup when MP gauge is full of cracks. Fixed an issue where the gacha input would sometimes be dis- blinked and not visible. Fixed an issue where talking to an event, etc. was prioritized before opening the menu when the menu display and decision are on the same input. Fixed left tab input/right tab input not appearing in the Levagacha. Fixed problems when using the keyboard. Some errors around messing around have been fixed. But the Levagacha display may disappear. ...... Cyclone Pot Uncle Noel-chan is fun and will not be fixed until the next major update. ver 0.20b (220506) The "Forest of The Storytellers" Map will be sold in the merchant's store. : It will not be sold until the replacement of the store inventory occurs once, so you will have to go through the battle once when the merchant is near the bench now! Softened the first evasive tutorial athleticism on day 2. Fixed a problem with the INBE (the engine that pollutes Noel-chan) being lightly colored in the macOS version. : The "UI dirt expression density" in the config has been temporarily initialized accordingly. In the hunting ground "Dog Run", the problem that the enemy who starts the battle at the danger level where the number of enemies is high was sometimes buried has been corrected. Fixed an issue in the lower left corner of the "spore dance floor" where falling into a mushy swamp sometimes prevented the player from coming back. Fixed an issue where the rush attack of the kenzan would end immediately and was not apparent. Fixed an issue where the setting to not repair clothing when sitting on a bench was not working. Fixed an issue where the icons for treasure chests and benches would be in the upper left corner of the screen when loaded. Fixed an issue where hunting locations on the map were not being recorded in the save data. Fixed an issue where the contaminant in Kenzan would freeze when defeated while launching a needle thrust attack. Fixed an issue where the puzzle on the upper map of the "Acid Bottom Needle Rat" hunting ground would cause a jamming pattern. Changed the fog charge time of the tainted body of the mushroom from 90F to 130F (making it easier to defeat). Fixed an issue where the dirty parts of the tainted Noel-chan were misaligned after a save/load. Fixed an issue where the battle would sometimes start while the player was caught between terrain in the "Acid Appetizer" battle location. Fixed an issue where a bug would occur when destroying the Acid Appetizer" battle location, causing the terrain judgment to remain.
https://w.atwiki.jp/chakimar/pages/20.html
現在日時を取得 Date date = new Date(); または Calendar cal = Calendar.getInstance(); Date date = cal.getTime(); 今日の月を取得 Calendar cal = Calendar.getInstance(); int month = cal.get(Calendar.MONTH); 今日の日付を取得 Calendar cal = Calendar.getInstance(); int day = cal.get(Calendar.WEEK_OF_MONTH); 今日の曜日を取得 Calendar cal = Calendar.getInstance(); int week = cal.get(Calendar.DAY_OF_WEEK); 0が日曜日で以降1ずつ増加(月曜が6) 現在の時間を取得 Calendar cal = Calendar.getInstance(); int hour = cal.get(Calendar.HOUR_OF_DAY); Dateから文字列を取得 SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd HH mm"); String dateStr = sdf.format(new Date()); 例)"20081001 16 09" 文字列からDateを取得 SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd HH mm"); Date date = sdf.parse("20081001 16 11");
https://w.atwiki.jp/usb_audio/pages/60.html
原文:Audio Devices Rev. 2.0 Spec and Adopters Agreement(ZIP) Universal Serial Bus Device Class Definition for Audio Data Formats Release 2.0 May 31, 2006 1 Universal Serial Bus Device Class Definition for Audio Data Formats Release 2.0 May 31, 2006 Universal Serial Bus Device Class Definition for Audio Data Formats Release 2.0 May 31, 2006 2 Scope of This Release This document is the Release 2.0 of this device class definition. Contributors Geert Knapen (Editor) Philips Applied Technologies AppTech-USA 1101 McKay Drive M/S 16 San Jose, CA 95131 USA Phone +1 (408) 474-8774 E-mail geert.knapen(at)philips.com Mike Kent Roland Corporation Kaoru Ishimine Roland Corporation Shoichi Kojima Roland Corporation Robert Gilsdorf Creative Labs Daniel (D.J.) Sisolak Microsoft Corporation Jack Unverferth Microsoft Corporation Niel Warren Apple Computer, Inc. Len Layton C-Media Electronics Mark Cookson M-Audio Revision History Revision Date Filename Author Description 1.7 Mar 18, 98 Frmts17.doc USB-IF DWG Original Frmts.doc document opened for review. 1.7a Oct. 24, 02 Frmts17a.doc Geert Knapen Identified areas for change. 1.7b Dec 06, 02 Frmts17b.doc DJ Sisolak Updated for USB 2.0 Core Specification 1.7c Dec 10, 02 Frmts17c.doc DJ Sisolak Make comments on the edits and accepted a number of changes. 1.7d Feb. 05, 03 Frmts17d.doc Geert Knapen Reviewed and accepted additional changes. 1.7e Feb. 07, 03 Frmts17e.doc Geert Knapen Completed cluster descriptors in Format descriptors. Added language for the sliding averaging window. 1.7e1 Feb. 19, 03 Frmts17e1.doc Geert Knapen Actually added language for USB packetization. 1.7f Mar. 26, 03 Frmts17f.doc Geert Knapen Accepted all changes 1.7g Apr. 07, 03 Frmts17g.doc Geert Knapen Major overhaul. Halfway through the RANGE implementation 1.7h Jun. 03, 03 Frmts17h.doc Geert Knapen Accepted all the changes so far. 1.7i Jun. 03, 03 Frmts17i.doc Geert Knapen Edited requests to reflect the RANGE attribute Universal Serial Bus Device Class Definition for Audio Data Formats Release 2.0 May 31, 2006 3 Revision Date Filename Author Description 1.7j Jul..11, 03 Frmts1ji.doc Geert Knapen Accepted all the changes, fixed a duplicate definition for D6 1.7k Sep. 08, 03 Frmts17k.doc Geert Knapen Added RAW_DATA format 1.7l Sep. 10, 03 Frmts17l.doc Geert Knapen Accepted all the changes 1.7m Oct. 14, 03 Frmts17m.doc Geert Knapen Added CN to all requests. Added some Controls. 1.7n Nov. 05, 03 Frmts17n.doc Geert Knapen Accepted all the changes. 1.7o Nov. 17, 03 Frmts17o.doc Geert Knapen Removed all references to sampling frequencies in the format-specific descriptors. 1.7p Dec. 01, 03 Frmts17p.doc Geert Knapen Accepted all the changes 1.7q Dec. 12, 03 Frmts17q.doc Geert Knapen Introduced extended Format Types 1.7r Feb. 04, 04 Frmts17r.doc Geert Knapen Accepted all changes 1.7s Apr. 13, 04 Frmts17s.doc Geert Knapen Added new Type III codes. Added Hi-Res Timestamp Sideband Protocol. Added Type IV Format. Moved decoder information to Audio document. Removed the concept of Format-specific descriptors and replaced them with Decoder descriptors 1.7t Apr. 28, 04 Frmts17t.doc Geert Knapen Added more info on the different audio data format types. 1.8 May 26, 04 Frmts18.doc Geert Knapen Accepted all changes and promoted to 1.8 level. 1.8a Aug. 10, 05 Frmts18a.doc Geert Knapen Minor editorial changes 1.8b Aug. 16, 05 Frmts18b.doc Geert Knapen Accepted editorial changes, based on F2F meeting review 1.8c Aug. 16, 05 Frmts18c.doc Geert Knapen Added DTS support 1.8d Sep. 02, 05 Frmts18d.doc Geert Knapen Accepted all the changes. 1.9RC1 Sep. 02, 05 Frmts19RC1.doc Geert Knapen Republished unchanged as 1.9RC1 1.9RC2 Oct. 05, 05 Frmts19RC2.doc Geert Knapen Removed comment on the Microsoft link. Accepted the change. 1.9 Oct. 07, 05 Frmts19.doc Geert Knapen Promoted to 1.9 without change. 2.0RC1 May 19, 06 Frmts20RC1.doc Geert Knapen Promoted to 2.0RC1 without change. Universal Serial Bus Device Class Definition for Audio Data Formats Release 2.0 May 31, 2006 4 Revision Date Filename Author Description 2.0 May 31, 06 Frmts20.doc Geert Knapen Added new Intellectual Property Disclaimer. Final version. Universal Serial Bus Device Class Definition for Audio Data Formats Release 2.0 May 31, 2006 5 Copyright © 1997-2006 USB Implementers Forum, Inc.All rights reserved. INTELLECTUAL PROPERTY DISCLAIMER A LICENSE IS HEREBY GRANTED TO REPRODUCE THIS SPECIFICATION FOR INTERNAL USE ONLY. NO OTHER LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED OR INTENDED HEREBY. USB-IF AND THE AUTHORS OF THIS SPECIFICATION EXPRESSLY DISCLAIM ALL LIABILITY FOR INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS RELATING TO IMPLEMENTATION OF INFORMATION IN THIS SPECIFICATION. USB-IF AND THE AUTHORS OF THIS SPECIFICATION ALSO DO NOT WARRANT OR REPRESENT THAT SUCH IMPLEMENTATION(S) WILL NOT INFRINGE THE INTELLECTUAL PROPERTY RIGHTS OF OTHERS. THIS SPECIFICATION IS PROVIDED “AS IS” AND WITH NO WARRANTIES, EXPRESS OR IMPLIED, STATUTORY OR OTHERWISE. ALL WARRANTIES ARE EXPRESSLY DISCLAIMED. USB-IF, ITS MEMBERS AND THE AUTHORS OF THIS SPECIFICATION PROVIDE NO WARRANTY OF MERCHANTABILITY, NO WARRANTY OF NON-INFRINGEMENT, NO WARRANTY OF FITNESS FOR ANY PARTICULAR PURPOSE, AND NO WARRANTY ARISING OUT OF ANY PROPOSAL, SPECIFICATION, OR SAMPLE. IN NO EVENT WILL USB-IF, MEMBERS OR THE AUTHORS BE LIABLE TO ANOTHER FOR THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST PROFITS, LOSS OF USE, LOSS OF DATA OR ANY INCIDENTAL, CONSEQUENTIAL, INDIRECT, OR SPECIAL DAMAGES, WHETHER UNDER CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY WAY OUT OF THE USE OF THIS SPECIFICATION, WHETHER OR NOT SUCH PARTY HAD ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. NOTE VARIOUS USB-IF MEMBERS PARTICIPATED IN THE DRAFTING OF THIS SPECIFICATION. CERTAIN OF THESE MEMBERS MAY HAVE DECLINED TO ENTER INTO A SPECIFIC AGREEMENT LICENSING INTELLECTUAL PROPERTY RIGHTS THAT MAY BE INFRINGED IN THE IMPLEMENTATION OF THIS SPECIFICATION. PERSONS IMPLEMENT THIS SPECIFICATION AT THEIR OWN RISK. Dolby™, AC-3™, Pro Logic™ and Dolby Surround™ are trademarks of Dolby Laboratories, Inc. All other product names are trademarks, registered trademarks, or service marks of their respective owners. Please send comments via electronic mail to audio-chair(atusb.org) 1 - 6 - 11 - 16 - 21 - 26 - 31 ここを編集
https://w.atwiki.jp/e_lab/pages/12.html
Javaでカレンダーを作ってみる。 実行メインでは、 引数に 年月 yyyymmを指定することにする。 例えば、200901とすれば、今年2009、1月のカレンダーが コンソールに表示されるというもの。 JavaのCalendar抽象クラスを使ってコーディングしてみた。 これくらいは最低でもいります。 import java.util.Calendar; import java.util.Date; import java.util.Locale; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.text.ParseException; ①年月の曜日を取得するメソッドが必要ですよね。 カレンダークラスは、staticメソッドとして このようにgetInstance()でインスタンス生成されます。 Newはできません。 Calendar cal = Calendar.getInstance(); cal.set(yyyy, mm - 1, 1); SimpleDateFormat weeks = new SimpleDateFormat ("EEE",Locale.JAPANESE); Date currentTime = cal.getTime(); String sDayOfWeek = weeks.format(currentTime); ②年月の総日数を取得するメソッドを作る。 Calendar cal = Calendar.getInstance(); cal.set(Calendar.YEAR, year); cal.set(Calendar.MONTH, month - 1);// 月は0 ~ 11(1月が 0)となります totalDays = cal.getActualMaxim(Calendar.DAY_OF_MONTH);
https://w.atwiki.jp/yoshiumi41/pages/89.html
package kaihatu; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; public class ARStub { public String ServiceAddItem(String itemno, String quantity, String daliveryDate) { List ItemAdd list = new ArrayList ItemAdd (); DateFormat format = new SimpleDateFormat("YYYY/M/d"); Date date = new Date(); ItemAdd ia = new ItemAdd(itemno, "カーネーション", 9800, 10, "98000",date); list.add(ia); System.out.println(list.add(ia)); return "ok"; } }
https://w.atwiki.jp/n-3104/pages/58.html
似たようなコードを何度か書いている気がするので、今回は保存しておこう。 import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.HashSet; import java.util.Set; public class LabelCreator { private static Set holidaySet; static { try { // 除外処理に利用する祝日Setの初期化 holidaySet = new HashSet(); DateFormat format = new SimpleDateFormat("yyyy/MM/dd"); String[] holidays = { "2008/04/29" }; for (int i = 0; i holidays.length; i++) { Date date = format.parse(holidays[i]); holidaySet.add(date); } } catch (ParseException e) { e.printStackTrace(); } } public static void main(String[] args) throws Exception { String from = "2008/04/07"; String to = "2008/04/30"; DateFormat format = new SimpleDateFormat("yyyy/MM/dd"); Date dateFrom = format.parse(from); Date dateTo = format.parse(to); Calendar calendar = Calendar.getInstance(); calendar.setTime(dateFrom); DateFormat outputFormat = new SimpleDateFormat("yyyy/MM/dd (E)"); for (int i = 1; calendar.getTimeInMillis() = dateTo.getTime(); calendar.add(Calendar.DATE, 1)) { if (isSchoolDate(calendar)) { System.out.println("////////////////////////////////////"); System.out.println("//// " + i++ + "日目 " + outputFormat.format(calendar.getTime())); System.out.println("////////////////////////////////////"); System.out.println(); } } } private static boolean isSchoolDate(Calendar calendar) { int day = calendar.get(Calendar.DAY_OF_WEEK); // 土日は除く if (day == Calendar.SATURDAY || day == Calendar.SUNDAY) { return false; } // 祝日は除く if (holidaySet.contains(calendar.getTime())) { return false; } return true; } }
https://w.atwiki.jp/chapati4it/pages/512.html
Javaで日付・時刻を扱う場合、大雑把に以下の3つのクラスを組み合わせて使います。 日付・時刻を扱うクラス「java.util.Date」 カレンダークラス「java.util.Calendar」 文字列との変換クラス「java.text.SimpleDateFormat」 ■目次 システム時刻を取得 システム時刻を文字列に変換 文字列から時刻(Date型)に変換 カレンダークラスを取得 + カレンダークラスの内容を出力 カレンダークラスで日付の計算 カレンダークラスとDate型の変換 文字列の日付の3ヶ月後を計算して文字列の日付に戻すサンプル 日付の比較(Date型同士) ideoneafter関数 before関数 compareTo関数 Date型が内部で扱うlong値を使った比較 文字列の日付が実際に存在する日付か確認する システム時刻を取得 // システム時刻を取得(現在時刻が 2013/11/22 01 01 51.929 の場合) Date date = new Date(); // システム時刻を出力してみる System.out.println(date.getTime()); // 結果 - 1385049711929 System.out.println(date); // 結果 - Fri Nov 22 01 01 51 JST 2013 Javaでシステム時刻(PCに設定されている時刻)を取得するには、Dateクラスを新しく作るだけでOKです。ただし、Dateクラスは日時を内部でlongの整数で扱うため、そのままでは人間には理解できず、Dateクラスをそのまま文字列に変換すると、日本人にはあまり馴染みのない形式で出力されます。 システム時刻を文字列に変換 // システム日付を取得 Date date = new Date(); // 変換クラスを作成 SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd hh mm ss.SSS"); // Date型から文字列に変換 String str = sdf.format(date); System.out.println(str); // 結果 - 2013/11/22 01 01 51.929 Dateクラスを日本人に馴染みのある形式の文字列にするには、SimpleDateFormatクラスのformat関数を使います。SimpleDateFormatクラスを作成する際のパラメータに、上記のようなパラメータを渡すことで変換する書式を指定できます。書式のパラメータに「yyyyMMdd」なら「20131122」に変換されます。 テキストファイルや画面に時刻を表示する際にも文字列への変換は必要になります。 文字列から時刻(Date型)に変換 // 日付文字列(yyyy/MM/dd形式) String str = "2013/11/22"; // 変換クラスを作成 SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd"); // 文字列からDate型に変換 Date date = sdf.parse(str); // 変換結果を出力してみる System.out.println(date.getTime()); // 結果 - 1385046000000 System.out.println(date); // 結果 - Fri Nov 22 00 00 00 JST 2013 文字列からDate型に変換するには、SimpleDateFormatクラスのparse関数を使います。日時の比較や、3日後や1ヶ月後を求めるには文字列のままではやりにくいので変換も必要になります。 カレンダークラスを取得 + カレンダークラスの内容を出力 // カレンダークラスを取得 Calendar cal = Calendar.getInstance(); // カレンダークラスの内容を出力してみよう(現在時刻が 2013/11/22 01 01 51.929 の場合) // 年 結果 - 2013 System.out.println(cal.get(Calendar.YEAR)); // 月 結果 - 10 System.out.println(cal.get(Calendar.MONTH)); // 日 結果 - 22 System.out.println(cal.get(Calendar.DAY_OF_MONTH)); // 時 結果 - 1 System.out.println(cal.get(Calendar.HOUR_OF_DAY)); // 分 結果 - 1 System.out.println(cal.get(Calendar.MINUTE)); // 秒 結果 - 51 System.out.println(cal.get(Calendar.SECOND)); // ミリ秒 結果 - 929 System.out.println(cal.get(Calendar.MILLISECOND)); カレンダークラスはDate型と違って「new Calendar()」とはしません。「Calendar.getInstance()」でカレンダークラスを作成します。Date型と同じように、作成した時点でシステム時刻が設定されています。 カレンダークラスは年・月・日・時・分・秒・ミリ秒などを上記のように「cal.get(Calendar.YEAR)」とすることで個別に取得できるのが特徴です。この時注意が必要なのが「月」で、月はなぜか1月なら 0、2月なら 1、のように実際の月より1少ない数字が取得できます。 カレンダークラスで日付の計算 // 3年後の計算 cal.add(Calendar.YEAR, 3); // 3年前の計算 cal.add(Calendar.YEAR, -3); // 3ヶ月後の計算 cal.add(Calendar.MONTH, 3); // 3ヶ月前の計算 cal.add(Calendar.MONTH, -3); // 3日後の計算 cal.add(Calendar.DAY_OF_MONTH, 3); // 3日前の計算 cal.add(Calendar.DAY_OF_MONTH, -3); // 3時間後の計算 cal.add(Calendar.HOUR_OF_DAY, 3); // 3時間前の計算 cal.add(Calendar.HOUR_OF_DAY, -3); // 3分後の計算 cal.add(Calendar.MINUTE, 3); // 3分前の計算 cal.add(Calendar.MINUTE, -3); // 3秒後の計算 cal.add(Calendar.SECOND, 3); // 3秒前の計算 cal.add(Calendar.SECOND, -3); カレンダークラスのもう一つの特徴は、3日後や3日前といった日付の計算が簡単にできることです。add関数に 3 を入れれば3日後や3ヶ月後、-3なら3日前や3ヶ月前の計算ができます。 カレンダークラスとDate型の変換 // カレンダークラスからDate型に変換 Date date = cal.getTime(); // Date型の値をカレンダークラスに設定 cal.setTime(date); カレンダークラスとDate型のやりとりは、getTime、setTime関数を使うだけでとても簡単に行えます。 文字列の日付の3ヶ月後を計算して文字列の日付に戻すサンプル import java.text.*; import java.util.*; public class DateTimeSample { public static void main(String[] args) throws ParseException { // 文字列の日付 String str = "2013/11/22"; // フォーマッタを作成 SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd"); // 文字列の日付からDate型に変換 Date date = sdf.parse(str); // カレンダークラス作成 Calendar cal = Calendar.getInstance(); // カレンダークラスにDateの値を設定 cal.setTime(date); // 3ヶ月後を計算 cal.add(Calendar.MONTH, 3); // カレンダークラスからDate型を取得 date = cal.getTime(); // Date型から文字列の日付に変換 String str2 = sdf.format(date); // 変換結果を出力 結果 - 2014/02/22 System.out.println(str2); } } これまでに挙げてきた、文字列からDate型への変換、カレンダークラスにDate型の値を設定、日付の計算、カレンダークラスからDate型を取得、Date型から文字列への変換を組み合わせるとこんな事も可能です。 日付の比較(Date型同士) ideone after関数 // date1が、date2より後の日時であれば true if (date1.after(date2)) System.out.println("date1はdate2より後の日時です"); else System.out.println("date1はdate2と同じか前の日時です"); before関数 // date1が、date2より前の日時であれば true if (date1.before(date2)) System.out.println("date1はdate2より前の日時です"); else System.out.println("date1はdate2と同じか後の日時です"); after関数とbefore関数です、after関数は、基となるDateがパラメータのDateよりも後(after)であれば true が返ります。before関数はその逆です。管理人はあまり使いません。 compareTo関数 // date1 = date2なら0 if (date1.compareTo(date2) == 0) System.out.println("date1とdate2は同じ日時です"); // date1 date2ならマイナスの値 if (date1.compareTo(date2) 0) System.out.println("date1はdate2より前の日時です"); // date1 date2ならプラスの値が返却されます if (date1.compareTo(date2) 0) System.out.println("date1はdate2より後の日時です"); compareTo関数は、同じなら 0、date1 date2 ならマイナスの値、date1 date2 ならプラスの値が返ってきます。compareTo関数一つで同じか、過去か未来かを判断できる便利な関数ですが、管理人は過去と未来がどっちがどっちか分からなくなるのであまり使いません。 Date型が内部で扱うlong値を使った比較 if (date1.getTime() == date2.getTime()) System.out.println("date1とdate2は同じ日時です"); if (date1.getTime() date2.getTime()) System.out.println("date1はdate2より後の日時です"); if (date1.getTime() date2.getTime()) System.out.println("date1はdate2より前の日時です"); Date型は内部でlongを使って時刻を保持します。getTime関数でそのlong値を取得できるので、これを比較演算子(== != など)で比較する方法です。管理人はこの方法が見た目で過去未来をどのように判定しようとしているか分かりやすいのでよく使います。 文字列の日付が実際に存在する日付か確認する String str1 = "2013/11/31"; // 存在しない日付 // 変換クラスを作成 SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd"); // 文字列をDate型に変換 Date date = sdf.parse(str1); // Date型から文字列に再変換 String str2 = sdf.format(date); // 再変換結果 2013/12/01 // 再変換した文字列と元の文字列で比較 if (str2.equals(str2)) System.out.println(str2 + "は、存在する日付です。"); else System.out.println(str2 + "は、存在しない日付です。"); SimpleDateFormatで存在しない日時を変換すると、実在する日時を越えた分だけ進めたDate型に変換されます。このDate型を文字列に戻すと、例えば「2013/11/31」は「2013/12/01」に変換されるので、変換前と返還後の文字列を比較して、同じであれば存在する日付、同じでなければ存在しない日付と判断できます。